#include "bsp_init.h"
#include "cmpnt_mng.h"
#include "os_task.h"

#include "task.h"

static void test_task(void *param) 
{ 
    while(1)
    {
        dev_led_control(DEV_LED_ON);
        vTaskDelay(1000);
        dev_led_control(DEV_LED_OFF);
        vTaskDelay(50);
    }
} 

/* 用户main */
int main(void)
{
    /* 硬件初始化 */
    bsp_init();

    /* 创建任务并启动 */
    xTaskCreate(test_task, "test_task", 1024, NULL, 10, NULL); 
    vTaskStartScheduler(); 

    /* cannot be here */
    return 0;
}
